//定义Mongoose模式和模型
const mongoose = require('mongoose');
mongoose.set('debug', true);
// 定义一个Schema
const Schema = mongoose.Schema;

const subUserType = new Schema({
    username:{ type: String, required: true },
    phoneNum:{ type: String, required: false },
    email:{ type: String, required: true },
    createTime:{ type: String, required: false},
    updateTime:{ type: String, required: false},
    uid:{ type: String, required: false},
})

const subUserModel = mongoose.model('subUser',subUserType)

module.exports = subUserModel;
